<template>
  <div>
    这个是sync====子组件==={{ aa }}---{{ bb }}
    <button @click="hClick">子组件</button>
  </div>
</template>

<script>
export default {
  name: 'VueHrSon',

  props: {
    aa: {
      type: Number,
      default: 0
    },
    bb: {
      type: Number,
      default: 0
    }
  },

  methods: {
    hClick() {
      this.$emit('update:aa', this.aa + 1)
      this.$emit('update:bb', this.bb + 1)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
